<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>登陆-网易考拉海购</title>
	<link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css" />
	<script src="static/jquery-1.11.0.js"></script>
		<script>
			$(function() {
				$("#sub").click(function(){
					
					var pwd=localStorage["pwd"]
					localStorage["zc"] = true
					var name=localStorage["userName"] 
					if($(".input-txt").val()==name){
						window.location.href='index.html';
					}
					
				})
				$('input[type=submit]').click(function() {
					$.ajax({
						url: 'http://datainfo.duapp.com/shopdata/userinfo.php',
						Type: 'POST',
						dataType: 'text',
						data: {
							status: 'login',
							userID: $('input[name=userID]').val(),
							password: $('input[name=password]').val()
						},
						success: function(res) {
							//1.登录
							if (res == 0) {
								alert('用户不存在')
							} else if (res == 2) {
								alert('用户名密码不符')

							} else {
								alert('恭喜您成功登陆!')
								//window.location.href = "logincg.html"
								$.cookie('name',$('input[type=text]').val());
                                window.location.href='index.html'
							}
						}

					})

                   
				})
					
			})
		</script>
</head>
<body>
	<!--***********headWrap***************-->
	<div class="headWrap">
		<div class="headCenter">
			<a href="index.html">
				<img src="__STATIC__/images/LOGO.png"/>
				
			</a>
			<div class="toping">
				<img src="static/images/login_top.png"/>
			</div>
		</div>
	</div>
	<!--***********loginBanner***************-->
	<div class="loginBanner">
		<div class="loginWrap">
			<div class="loginForm">
				<h2>
					<span>登录网易邮箱账号</span>
				</h2>
				<div class="loginBox">
					<div class="login-form">
					<form >
						<div class="inputBox">
							<div class="u-logo">
								<div class="u-logo-img1"></div>
							</div>
							<div class="u-input">
								<input class="input-txt" type="text" name="userID" placeholder="网易邮箱账号" value="anxiangyuan"/>
							</div>
						</div>
						<div class="inputBox">
							<div class="u-logo">
								<div class="u-logo-img2"></div>
							</div>
							<div class="u-input">
								<input type="password"class="input-pwd" name="password" placeholder="密码"  value="anxiangyuan"/>
							</div>
						</div>
						<div class="m-unlogin">
							<div class="b-ulogn">
								<span><input type="checkbox" checked="checked"></span>
								<label>十天内免登陆</label>
							</div>
							<a href="#">忘记密码？</a>
						</div>
					</form>
					     <div class="f-cb">
							<a href="#"><input class="btn" type="submit" id="sub" value="登录" /></a>
						 </div>
						 </div>
				</div>
				<ul class="formList">
					<li>
						<em>没有网易邮箱?&nbsp;</em>
						<a href="zc.html" target="_blank">立即免费注册&gt;&gt;</a>
					</li>
				</ul>
				<ul class="formLast">
					<li class="text">使用第三方账号登陆:</li>
					<li class="wx"><a href="#"></a></li>
					<li class="zfb"><a href="#"></a></li>
					<li class="wb"><a href="#"></a></li>
					<li class="qq"><a href="#"></a></li>
				</ul>
			</div>
			<div class="qrcode">
				<a href="#">
					
				</a>
			</div>
			
		</div>
	</div>
	<!--***********foot***************-->
	<div class="foot">
		<div class="foot_top">
			<ul>
				<li><a href="#">About NetEase</a>|</li>
				<li><a href="#">公司简介</a>|</li>
				<li><a href="#">联系方法</a>|</li>
				<li><a href="#">友情链接</a>|</li>
				<li><a href="#">招聘信息</a>|</li>
				<li><a href="#">客户服务</a>|</li>
				<li><a href="#">隐私政策</a>|</li>
				<li><a href="#">网络营销</a>|</li>
				<li><a href="#">网站地图</a>|</li>
				<li><a href="#">网易考拉海购</a></li>
			</ul>
			
			<div class="foot_top1">
				<a href="#"><img class="img" src="__STATIC__/images/hz.jpg"/></a>
			<a class="about_a3" href="#"><br>		
					<span>浙公网安备 33010002000066号 </span>
				</a>
				<span>增值电信业务经营许可证：浙B2-20090185-3</span>
				<span>网络文化经营许可证：浙网文[2016]0155-055号 </span>
				<span>网易公司版权所有©1997-2016</span>
			</div>
			
		</div>
		<div class="foot_btom">
			   <a href="#"><img src="__STATIC__/images/jh.png" width="80" height="30px"/></a>
				<a href="#"><img src="__STATIC__/images/hz.jpg" width="28" height="30px"/></a>
		</div>
	</div>
</body>
</html>